{{ with .TableOfContents }}
  {{ if ne . "<nav id=\"TableOfContents\"></nav>" }}
    <aside class="toc">
      <details>
          <summary>
              {{- i18n "toc" | default "Table of Contents" }}
          </summary>
          <div>
              {{ . }}
          </div>
      </details>
    </aside>
  {{ end }}
{{ end }}
